//address.js
const util = require('../../utils/util.js');
let sfClick = '';

Page({
  data: {
    addressShow: true
  },
  onLoad: function(option){
    let that = this;
    sfClick = option.status;
  },
  chooseDz: function () {
    if (sfClick == '1') {
       wx.navigateBack({
          delta: 1
      })
    } else {
      return false
    }
  },
  adressDel: function () {
      wx.showModal({
      title: '',
      content: '确认要删除?',
      cancelColor: '#999999',
      confirmColor:'#ff0028',
      success (res) {
        if (res.confirm) {
          console.log('用户点击确定')
        } else if (res.cancel) {
          console.log('用户点击取消')
        }
      }
    })
  },
  addressNew: function () {
    wx.navigateTo({
       url: '/packageA/pages/addressnew/addressnew'
    })
  }
})
